package com.one.controller;


import com.one.entity.GridCity;
import com.one.service.IGridCityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/gridCity")
@Api(tags="市信息相关接口")
public class GridCityController {

	@Autowired
	private IGridCityService gridCityService;
	
	/****************** neps 工程 ********************/
	//根据省编号查询市信息接口
	@ApiOperation("根据省编号查询所有市信息接口")
	@PostMapping("/listGridCityByProvinceId")
	public List<GridCity> listGridCityByProvinceId(@RequestBody GridCity gridCity){
		return gridCityService.listGridCityByProvinceId(gridCity.getProvinceId());
	}
	
	/****************** neps 工程 ********************/
}
